﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using nERP.Model.Po;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.Po.BuyReturnVMs
{
    public partial class BuyReturnBatchVM : BaseBatchVM<BuyReturn, BuyReturn_BatchEdit>
    {
        public BuyReturnBatchVM()
        {
            ListVM = new BuyReturnListVM();
            LinkedVM = new BuyReturn_BatchEdit();
        }

        public override bool DoBatchEdit()
        {

            return base.DoBatchEdit();
        }
    }

    /// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class BuyReturn_BatchEdit : BaseVM
    {


        [Display(Name = "_Model._BuyReturn._BuyInWarehouse")]
        public string BuyInWarehouseId { get; set; }
        [Display(Name = "_Model._BuyReturn._Buy")]
        public string BuyId { get; set; }
        [Display(Name = "_Model._BuyReturn._Supplier")]
        public string SupplierId { get; set; }
        [Display(Name = "_Model._BuyReturn._InvoicesDate")]
        public DateTime? InvoicesDate { get; set; }
        [Display(Name = "_Model._BuyReturn._MakeUser")]
        public string MakeUserId { get; set; }
        [Display(Name = "_Model._BuyReturn._Status")]
        public StatusTypeEnum? Status { get; set; }
        [Display(Name = "_Model._BuyReturn._Remark")]
        public string Remark { get; set; }
        [Display(Name = "_Model._BuyReturn._TotalPrice")]
        public decimal? TotalPrice { get; set; }
        [Display(Name = "_Model._BuyReturn._TotalPrice1")]
        public decimal? TotalPrice1 { get; set; }
        [Display(Name = "_Model._BuyReturn._TotalPrice2")]
        public decimal? TotalPrice2 { get; set; }

        protected override void InitVM()
        {

        }
    }

}